package com.ssn.jse.yi;

import java.util.Random;

public class RandomTest {
	public static void main(String[] args) {
		int[] i=new int[4];
		System.out.println(i.length);
		for (int j = 0; j < i.length; j++) {
			i[j]=(int)Math.random()*40;
			System.out.println("="+Math.round(Math.random()*40));
		}
		for (int j : i) {
			System.out.println(j);
		}
		Random random = new Random();
        for(int j = 0; j < 10;j++) {
            System.out.println(Math.abs(random.nextInt())%10);
        }
	}
}
